package com.sctvcloud.zhaohua_sd.beans;

import android.support.annotation.NonNull;
import android.text.TextUtils;

import com.ruihang.generalibrary.ui.util.IListData;
import com.ruihang.generalibrary.utils.IDataDate;
import com.sctvcloud.zhaohua_sd.ui.util.IListShowData;

import java.sql.Date;
import java.util.List;

/**
 * Created by raoweiwei on 2017/8/17.
 */

public class FLiveProgram implements IListShowData, IDataDate {
    private String liveProgrammeDate;
    private List<FProgram> programmeList;
    private Date dateTemp;

    public String getLiveProgrammeDate() {
        return liveProgrammeDate;
    }

    public void setLiveProgrammeDate(String liveProgrammeDate) {
        if (!TextUtils.equals(liveProgrammeDate, this.liveProgrammeDate)) {
            dateTemp = null;
        }
        this.liveProgrammeDate = liveProgrammeDate;
    }

    public List<FProgram> getProgrammeList() {
        return programmeList;
    }

    public void setProgrammeList(List<FProgram> programmeList) {
        this.programmeList = programmeList;
    }

    @Override
    public String getDataTitle() {
        return null;
    }

    @Override
    public String getDataImg() {
        return null;
    }

    @Override
    public String getDataTag() {
        return null;
    }

    @Override
    public String getDataId() {
        return null;
    }

    @Override
    public int getDataType() {
        return 0;
    }

    @Override
    public int getDataViewType() {
        return 0;
    }

    @Override
    public IListData getOwner() {
        return null;
    }

    @Override
    public String getTime() {
        return null;
    }

    @Override
    public IListShowData getOwenerData() {
        return null;
    }

    @Override
    public Date getDataDate() {
        return dateTemp;
    }

    @Override
    public void setDataDate(Date date) {
        this.dateTemp = date;
    }

    @NonNull
    @Override
    public String getDatePattern() {
        return "yyyy-MM-dd";
    }

    @Override
    public String getDateString() {
        return liveProgrammeDate;
    }
}
